<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>vue绑定数据</title>
		<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
	</head>
	<body>
		<div id="app">
			{{msg}}
			</br>
			<a v-bind:href="url">{{test}}</a>
			</br>
			表达式案例:{{age > 30 ? "老头a":"美女"}}
			</br>
			表达式案例1:{{age*10}}
			</br>
			表达式案例2:{{test.split("")}}
		</div>

		<script>
			var vue = new Vue({
				el: "#app",
				data: {
					age:"30",
					msg: "绑定数据的案例",
					test: "点击哥哥带你进baidu",
					url: "http://www.google.com"
				}
			});
		</script>
	</body>
</html>
